import { Pipe, PipeTransform } from '@angular/core';

/**
 * Generated class for the DevPipe pipe.
 *
 * See https://angular.io/api/core/Pipe for more info on Angular Pipes.
 */
@Pipe({
    name: 'isNullPipe',
})
export class IsNullPipe implements PipeTransform {
    /**
     * Takes a value and makes it lowercase.
     */
    transform(value: any, ...args) {
        if(value === null || value === ''){
            return ' -- '
        }
        // console.log(args);
        return value;
        //return value.toLowerCase();
    }
}
